{layout name="layout/index" /}
<div class="panel panel-default panel-intro">
<div class="panel-heading" style=" padding-top:5px;">
        <ul class="nav nav-tabs">
                     <li class="active"><a href="#tab_1" data-toggle="tab">基本设置</a></li>
                   <li ><a href="#tab_2" data-toggle="tab">其他设置</a></li> 
        </ul>
    </div>
<div class="panel-body is-dialog">    
<form id="edit-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="post">      
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="tab_1">
    <div class="form-group">
    {notempty name="info.vod_id"}
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">视频ID:</label>
        <div class="col-xs-12 col-sm-1">
         <input type="text" name="story_vid" value="{$info.story_vid|default=''}" class="form-control">
         </div>
          <label for="c-keywords" class="control-label col-xs-12" style="width:auto">视频名称:</label>
       <div class="col-xs-12 col-sm-2">
         <input type="text" name="vod_name" value="{$info.vod_name|default=''}" class="form-control"  readonly>
        </div>
           <label for="c-keywords" class="control-label col-xs-12" style="width:auto">视频分类:</label>
       <div class="col-xs-12 col-sm-2">
         <input type="text" name="vod_list_name" value="{:getlistname($info['vod_cid'],'list_name')}" class="form-control"  readonly>
        </div> 
        {else /} 
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">视频ID:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_vid" value="{$info.story_vid|default=''}" class="form-control">
         </div> 
         {/notempty} 
      <label for="c-keywords" class="control-label col-xs-12" style="width:auto">剧情分类:</label>
         <div class="col-xs-12 col-sm-2">
          <select name="story_cid" class="form-control selectpicker">
<option value="">选择分类</option> 
{volist name="liststory" id="vo"}<option value="{$vo.list_id}" {if isset($info['story_cid'])} {eq name="vo.list_id" value="$info['story_cid']"}selected{/eq}{/if}>{$vo.list_name}</option>
{if isset($vo['son'])}{volist name="vo['son']" id="splist"}<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['story_cid']"}selected{/eq}>├ {$splist.list_name}</option>{/volist}{/if}
{/volist}
</select>
         </div> 
         <span style="line-height:30px;">推送到百度：</span><input name="insertseo" type="checkbox" {empty name="info['story_id']"}checked{/empty} title="勾选推送到百度" style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;" >                      
    </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">采集地址:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" id="story_url" name="story_url" value="{$info.story_url|default=''}" class="form-control" placeholder="支持百度百科，TVMAO剧情,TV2345明星地址" data-tip="支持百度百科，TVMAO剧情,TV2345明星地址"><a href="javascript:;" id="getstory" class="btn btn-success btn-add" style="cursor:pointer; position:absolute; right:15px">获取剧情</a>
        </div> 
    </div>    
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">剧情标题:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" name="story_stitle" value="{$info.story_stitle|default=''}" class="form-control" placeholder="用于前台剧情页面的标题">
        </div>
    </div>
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">关键词:</label>
        <div class="col-xs-12 col-sm-8">
         <input type="text" id="keywords" name="story_keywords" value="{$info.story_keywords|default=''}" class="form-control" placeholder="用于前台剧情页面的关键词"><a href="javascript:;" id="getkeywords" class="btn btn-success btn-add" style="cursor:pointer; position:absolute; right:15px">获取关键词</a>
        </div>
    </div>              
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">剧情描述:</label>
        <div class="col-xs-12 col-sm-8">
         <textarea  class="form-control" name="story_description">{$info['story_description']|default=''}</textarea>
        </div>
    </div>     
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">剧情内容:</label>
        <div class="col-xs-12 col-sm-11">
         <div class="col-xs-12 col-sm-11" style="line-height:35px; padding-left:0px">
        格式：第1集@@标题1@@剧情1||第2集@@标题2@@剧情1
        </div>
        <div class="col-xs-12 col-sm-11" style="padding-left:0px">
         <textarea class="summernote" id="story_content" name="story_content" style="height:200px;">{:zanpian_news_img_array($info['story_content'])}</textarea>
         </div>
        </div>
    </div> 
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">连载集数:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" id="story_continu" name="story_continu"  value="{$info.story_continu|default=''}" class="form-control" data-tip="已经添加的剧情集数，后台采集 火车头采集会匹配是否相同" style="text-align:center;">
        </div>
    </div>  
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">分页数量:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" id="story_page" name="story_page"  value="{$info.story_page|default=''}" class="form-control" data-tip="自动获取" style="text-align:center;" readonly>
        </div>
    </div>
     <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">最后标题:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" id="story_title" name="story_title"  value="{$info.story_title|default=''}" class="form-control" data-tip="自动获取" style="text-align:center;" readonly>
        </div>
    </div>                
       <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-1">连载状态:</label>
                <div class="col-xs-12" style="width:auto">
                    <select id="story_cont" name="story_cont" class="form-control selectpicker">
                        <option value="0">连载中</option>
                        <option value="1" {eq name="info.story_cont" value="1" }selected{/eq}>已完结</option>
                    </select>
                </div>
            </div>  
                <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-1">显示状态:</label>
                <div class="col-xs-12" style="width:auto">
                    <select name="story_status" class="form-control selectpicker">
                        <option value="1">显示</option>
                        <option value="0" {eq name="info.story_status" value="0" }selected{/eq}>隐藏</option>
                    </select>
                </div>
            </div>            
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">剧情时间:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" name="story_addtime" value="{notempty name="info.story_addtime"}{$info.story_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control">
        </div>
        <input name="checktime" type="checkbox" style="border:none;width:auto;position:relative; top:5px;" value="1" {notempty name="info.admin_time_edit"}checked{/notempty} title="勾选则使用系统当前时间">
    </div>             
            
     </div>
<div class="tab-pane fade" id="tab_2">
     <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-1">推荐星级:</label>
                <div class="col-xs-12 col-sm-6" style="position:relative; top:5px;">
                 <input name="story_stars" id="story_stars" type="hidden" value="{$info.story_stars|default=''}">{volist name=":admin_star_arr($info.story_stars)" id="ajaxstar"}<img src="{$config.site.cdnurl}admin/zanpiancms/img/star{$ajaxstar}.gif" id="story_{$i}" class="addstars">{/volist}
                </div>
            </div>          
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">标题颜色:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_color"  value="{$info.story_color|default=''}" class="form-control" data-tip="点击选色" style="width:80px;text-align:center" id="color">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">总人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_hits"  value="{$info.story_hits|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">月人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_hits_month"  value="{$info.story_hits_month|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
       <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">周人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_hits_week"  value="{$info.story_hits_week|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">日人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="story_hits_day"  value="{$info.story_hits_day|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>         
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-1">独立模版:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="story_skin"  value="{$info.story_skin|default=''}" class="form-control">
        </div>
    </div>          
     </div>     
</div>     

{notempty name="info.story_id"} 
<input type="hidden" name="story_id" value="{$info['story_id']|default=''}"> 
{/notempty}
    <div class="form-group hidden layer-footer">
      <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();"> 关闭</button>
        </div>
    </div>
  </form>      
</div>
</div>